package unm.excel

import org.apache.poi.hssf.usermodel.HSSFSheet
import org.apache.poi.hssf.usermodel.HSSFWorkbook
import unm.FileTool

abstract class AbstractExcel {
    static HSSFSheet getSheet(String excelName, String sheetName) {
        def excelFile = FileTool.getExcel(excelName)
        def workbook = new HSSFWorkbook(new FileInputStream(excelFile))
        workbook.getSheet(sheetName)
    }
}
